README File: Replication analysis for: "What Traits Do Citizens Value in Leaders During War? Experimental and Panel-Based Evidence from Ukraine in 2022"

Instructions for Replication 

(1) Software Used: Stata 18 

(2) Packages Required: You may be required to install different packages for producing tables, figures etc. when running the do-file. However, you will be prompted to install the needed packages upon running the do-file. One specific package (used for lines 76-79 in the do-file) is a user written function, which can be installed by writing the following code (without the quotation marks): "net install sg97_5, from(http://www.stata-journal.com/software/sj12-4/)"
    (a) Run the do-file "Laustsen_et_al_PSRM_June2025" (see (3) below).
    (b) If you need to install any packages along the way, please do so following the instructions in Stata.
    (c) Continue executing the do-file after installing the needed package.
    (d) You may need to perform step (b) and (c) several times depending on the number of packages you need to install.

(3) Replicating results reported in the article and Supplementary Online Materials Using Stata's Do File Editor
    (a) First, using Stata's do file editor, clear the workspace and set the working directory to your computer's location 
        clear
	use "C:\Users\Your Name\Folder\Subfolder\Name of Data.dta" (this is an example of a working directory name)
    (b) Then select the relevant lines of code and click the "run" button in Stata's Do File Editor
    (c) Figures are set to be exported as pdf-files (saved in the chosen working directory). Likewise, tables displayed in the Supplementary Online Materials are produced and saved as rtf-files. These can be opened using Microsoft Word.
    (d) The marginsplot command or the coefplot command is used to create Figure 1-3 in the main paper. Cosmetic changes to these figures were made manually using point-and-click features in Stata's graph editor.

(4) Outputs
    (a) Tables will be exported as rtf-files and they can be opened using Microsoft Word for further editing/configuration.
    (b) Figures will appear in Stata's graph editor upon running the corresponding code. This is where various cosmetic changes can be made. As explained above, figures are also saved as pdf-files in the chosen working directory. Figures 	can be saved (via Stata's graph editor) in different formats (.gph, .pdf, .png, .jpg, etc) if one so wishes.  

(5) Machine Information 
    (a) OS: Windows 11 Education, Version 24H2     
    (b) RAM: 32 GB
    (c) Stata Version: 18

(6) Contact: For any questions, please reach out to Lasse Laustsen at ll@ps.au.dk

	
